<?php
if (!defined('TYPO3_MODE')) {
	die ('Access denied.');
}

$TCA['tx_mtkatalogiadd_www'] = array (
	'ctrl' => $TCA['tx_mtkatalogiadd_www']['ctrl'],
	'interface' => array (
		'showRecordFieldList' => 'hidden,www,title,skrypt,linkreturn,seo,free,moderowany,descinfo,pr,ip,kategoria,sitemap,mapacontent,insertcontent,insertoption'
	),
	'feInterface' => $TCA['tx_mtkatalogiadd_www']['feInterface'],
	'columns' => array (
		'hidden' => array (		
			'exclude' => 1,
			'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
			'config'  => array (
				'type'    => 'check',
				'default' => '0'
			)
		),
		'www' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.www',		
			'config' => array (
				'type'     => 'input',
				'size'     => '15',
				'max'      => '255',
				'checkbox' => '',
				'eval'     => 'trim',
				'wizards'  => array(
					'_PADDING' => 2,
					'link'     => array(
						'type'         => 'popup',
						'title'        => 'Link',
						'icon'         => 'link_popup.gif',
						'script'       => 'browse_links.php?mode=wizard',
						'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'
					)
				)
			)
		),
		'title' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.title',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
		'skrypt' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.skrypt',		
			'config' => array (
				'type' => 'select',	
				'foreign_table' => 'tx_mtkatalogiadd_skrypt',	
				'foreign_table_where' => 'ORDER BY tx_mtkatalogiadd_skrypt.uid',	
				'size' => 1,	
				'minitems' => 0,
				'maxitems' => 1,
			)
		),
		'linkreturn' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.linkreturn',		
			'config' => array (
				'type' => 'check',
			)
		),
		'seo' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.seo',		
			'config' => array (
				'type' => 'check',
			)
		),
		'free' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.free',		
			'config' => array (
				'type' => 'check',
			)
		),
		'moderowany' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.moderowany',		
			'config' => array (
				'type' => 'check',
			)
		),
		'descinfo' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.descinfo',		
			'config' => array (
				'type' => 'text',
				'cols' => '30',	
				'rows' => '5',
			)
		),
		'pr' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.pr',		
			'config' => array (
				'type' => 'select',
				'items' => array (
					array('LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.pr.I.0', '0'),
					array('LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.pr.I.1', '1'),
					array('LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.pr.I.2', '3'),
					array('LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.pr.I.3', '3'),
					array('LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.pr.I.4', '4'),
					array('LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.pr.I.5', '5'),
					array('LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.pr.I.6', '6'),
					array('LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.pr.I.7', '7'),
					array('LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.pr.I.8', '8'),
					array('LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.pr.I.9', '9'),
					array('LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.pr.I.10', '10'),
				),
				'size' => 1,	
				'maxitems' => 1,
			)
		),
		'ip' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.ip',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
		'kategoria' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.kategoria',		
			'config' => array (
				'type' => 'group',	
				'internal_type' => 'db',	
				'allowed' => 'tt_news_cat',	
				'size' => 1,	
				'minitems' => 0,
				'maxitems' => 1,
			)
		),
		'sitemap' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.sitemap',		
			'config' => array (
				'type'     => 'input',
				'size'     => '15',
				'max'      => '255',
				'checkbox' => '',
				'eval'     => 'trim',
				'wizards'  => array(
					'_PADDING' => 2,
					'link'     => array(
						'type'         => 'popup',
						'title'        => 'Link',
						'icon'         => 'link_popup.gif',
						'script'       => 'browse_links.php?mode=wizard',
						'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'
					)
				)
			)
		),
		'mapacontent' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.mapacontent',		
			'config' => array (
				'type' => 'text',
				'cols' => '30',	
				'rows' => '5',
			)
		),
		'insertcontent' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.insertcontent',		
			'config' => array (
				'type' => 'text',
				'cols' => '30',	
				'rows' => '5',
			)
		),
		'insertoption' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_www.insertoption',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
	),
	'types' => array (
		'0' => array('showitem' => 'hidden;;1;;1-1-1, www, title;;;;2-2-2, skrypt;;;;3-3-3, linkreturn, seo, free, moderowany, descinfo, pr, ip, kategoria, sitemap, mapacontent, insertcontent, insertoption')
	),
	'palettes' => array (
		'1' => array('showitem' => '')
	)
);



$TCA['tx_mtkatalogiadd_skrypt'] = array (
	'ctrl' => $TCA['tx_mtkatalogiadd_skrypt']['ctrl'],
	'interface' => array (
		'showRecordFieldList' => 'hidden,title'
	),
	'feInterface' => $TCA['tx_mtkatalogiadd_skrypt']['feInterface'],
	'columns' => array (
		'hidden' => array (		
			'exclude' => 1,
			'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
			'config'  => array (
				'type'    => 'check',
				'default' => '0'
			)
		),
		'title' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_skrypt.title',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
	),
	'types' => array (
		'0' => array('showitem' => 'hidden;;1;;1-1-1, title;;;;2-2-2')
	),
	'palettes' => array (
		'1' => array('showitem' => '')
	)
);



$TCA['tx_mtkatalogiadd_project'] = array (
	'ctrl' => $TCA['tx_mtkatalogiadd_project']['ctrl'],
	'interface' => array (
		'showRecordFieldList' => 'hidden,title,article,category,feuser,wwwcategory,script,parse'
	),
	'feInterface' => $TCA['tx_mtkatalogiadd_project']['feInterface'],
	'columns' => array (
		'hidden' => array (		
			'exclude' => 1,
			'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
			'config'  => array (
				'type'    => 'check',
				'default' => '0'
			)
		),
		'title' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_project.title',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
		'article' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_project.article',		
			'config' => array (
				'type' => 'group',	
				'internal_type' => 'db',	
				'allowed' => 'tt_news',	
				'size' => 5,	
				'minitems' => 0,
				'maxitems' => 99,
			)
		),
		'category' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_project.category',		
			'config' => array (
				'type' => 'group',	
				'internal_type' => 'db',	
				'allowed' => 'tt_news_cat',	
				'size' => 5,	
				'minitems' => 0,
				'maxitems' => 99,
			)
		),
		'feuser' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_project.feuser',		
			'config' => array (
				'type' => 'group',	
				'internal_type' => 'db',	
				'allowed' => 'fe_users',	
				'size' => 1,	
				'minitems' => 0,
				'maxitems' => 1,
			)
		),
		'wwwcategory' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_project.wwwcategory',		
			'config' => array (
				'type' => 'group',	
				'internal_type' => 'db',	
				'allowed' => 'tx_mtkatalogiadd_category',	
				'size' => 3,	
				'minitems' => 0,
				'maxitems' => 10,
			)
		),
		'script' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_project.script',		
			'config' => array (
				'type' => 'select',	
				'foreign_table' => 'tx_mtkatalogiadd_skrypt',	
				'foreign_table_where' => 'ORDER BY tx_mtkatalogiadd_skrypt.uid',	
				'size' => 1,	
				'minitems' => 0,
				'maxitems' => 1,
			)
		),
		'parse' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_project.parse',		
			'config' => array (
				'type' => 'check',
			)
		),
	),
	'types' => array (
		'0' => array('showitem' => 'hidden;;1;;1-1-1, title;;;;2-2-2, article;;;;3-3-3, category, feuser, wwwcategory, script, parse')
	),
	'palettes' => array (
		'1' => array('showitem' => '')
	)
);



$TCA['tx_mtkatalogiadd_category'] = array (
	'ctrl' => $TCA['tx_mtkatalogiadd_category']['ctrl'],
	'interface' => array (
		'showRecordFieldList' => 'hidden,title,script,count,www'
	),
	'feInterface' => $TCA['tx_mtkatalogiadd_category']['feInterface'],
	'columns' => array (
		'hidden' => array (		
			'exclude' => 1,
			'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
			'config'  => array (
				'type'    => 'check',
				'default' => '0'
			)
		),
		'title' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_category.title',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',
			)
		),
		'script' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_category.script',		
			'config' => array (
				'type' => 'select',	
				'foreign_table' => 'tx_mtkatalogiadd_skrypt',	
				'foreign_table_where' => 'ORDER BY tx_mtkatalogiadd_skrypt.uid',	
				'size' => 1,	
				'minitems' => 0,
				'maxitems' => 1,
			)
		),
		'count' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_category.count',		
			'config' => array (
				'type' => 'input',	
				'size' => '30',	
				'range' => array ('lower'=>0,'upper'=>1000),	
				'eval' => 'int',
			)
		),
		'www' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_category.www',		
			'config' => array (
				'type' => 'select',	
				'foreign_table' => 'tx_mtkatalogiadd_www',	
				'foreign_table_where' => 'ORDER BY tx_mtkatalogiadd_www.uid',	
				'size' => 9,	
				'minitems' => 0,
				'maxitems' => 100,
			)
		),
	),
	'types' => array (
		'0' => array('showitem' => 'hidden;;1;;1-1-1, title;;;;2-2-2, script;;;;3-3-3, count, www')
	),
	'palettes' => array (
		'1' => array('showitem' => '')
	)
);



$TCA['tx_mtkatalogiadd_catlink'] = array (
	'ctrl' => $TCA['tx_mtkatalogiadd_catlink']['ctrl'],
	'interface' => array (
		'showRecordFieldList' => 'hidden,www,category,link'
	),
	'feInterface' => $TCA['tx_mtkatalogiadd_catlink']['feInterface'],
	'columns' => array (
		'hidden' => array (		
			'exclude' => 1,
			'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
			'config'  => array (
				'type'    => 'check',
				'default' => '0'
			)
		),
		'www' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_catlink.www',		
			'config' => array (
				'type' => 'select',	
				'foreign_table' => 'tx_mtkatalogiadd_www',	
				'foreign_table_where' => 'ORDER BY tx_mtkatalogiadd_www.uid',	
				'size' => 1,	
				'minitems' => 0,
				'maxitems' => 1,
			)
		),
		'category' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_catlink.category',		
			'config' => array (
				'type' => 'select',	
				'foreign_table' => 'tx_mtkatalogiadd_category',	
				'foreign_table_where' => 'ORDER BY tx_mtkatalogiadd_category.uid',	
				'size' => 1,	
				'minitems' => 0,
				'maxitems' => 1,
			)
		),
		'link' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_catlink.link',		
			'config' => array (
				'type'     => 'input',
				'size'     => '15',
				'max'      => '255',
				'checkbox' => '',
				'eval'     => 'trim',
				'wizards'  => array(
					'_PADDING' => 2,
					'link'     => array(
						'type'         => 'popup',
						'title'        => 'Link',
						'icon'         => 'link_popup.gif',
						'script'       => 'browse_links.php?mode=wizard',
						'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'
					)
				)
			)
		),
	),
	'types' => array (
		'0' => array('showitem' => 'hidden;;1;;1-1-1, www, category, link')
	),
	'palettes' => array (
		'1' => array('showitem' => '')
	)
);



$TCA['tx_mtkatalogiadd_proincat'] = array (
	'ctrl' => $TCA['tx_mtkatalogiadd_proincat']['ctrl'],
	'interface' => array (
		'showRecordFieldList' => 'hidden,project,category,link'
	),
	'feInterface' => $TCA['tx_mtkatalogiadd_proincat']['feInterface'],
	'columns' => array (
		'hidden' => array (		
			'exclude' => 1,
			'label'   => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
			'config'  => array (
				'type'    => 'check',
				'default' => '0'
			)
		),
		'project' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_proincat.project',		
			'config' => array (
				'type' => 'group',	
				'internal_type' => 'db',	
				'allowed' => 'tx_mtkatalogiadd_project',	
				'size' => 1,	
				'minitems' => 0,
				'maxitems' => 1,
			)
		),
		'category' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_proincat.category',		
			'config' => array (
				'type' => 'group',	
				'internal_type' => 'db',	
				'allowed' => 'tx_mtkatalogiadd_catlink',	
				'size' => 1,	
				'minitems' => 0,
				'maxitems' => 1,
			)
		),
		'link' => array (		
			'exclude' => 0,		
			'label' => 'LLL:EXT:mtkatalogi_add/locallang_db.xml:tx_mtkatalogiadd_proincat.link',		
			'config' => array (
				'type'     => 'input',
				'size'     => '15',
				'max'      => '255',
				'checkbox' => '',
				'eval'     => 'trim',
				'wizards'  => array(
					'_PADDING' => 2,
					'link'     => array(
						'type'         => 'popup',
						'title'        => 'Link',
						'icon'         => 'link_popup.gif',
						'script'       => 'browse_links.php?mode=wizard',
						'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'
					)
				)
			)
		),
	),
	'types' => array (
		'0' => array('showitem' => 'hidden;;1;;1-1-1, project, category, link')
	),
	'palettes' => array (
		'1' => array('showitem' => '')
	)
);
?>